package com.gmail.liulijuan;

public class CharuOrder {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		int[] a = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 0 };
		int b;
		for (int i = 0; i < a.length; i++) {
			for (int j = 0; j < i; j++) {
				if (a[i]>a[j]) {
					b=a[i];
					a[i]=a[j];
					a[j]=b;					
				}				
			}				
		}
		for (int i = 0; i < a.length; i++) {
			System.out.printf("%2d",a[i]);
		}
	}

}
